﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Project.Models.System.DepartmentFile;
using Project.Models.System.StaffFile.StaffLifeCycle;
using SqlSugar;

namespace Project.Models.System.StaffFile
{
    /// <summary>
    /// 员工
    /// </summary>
    public class Staff:BaseEntity
    {
        /// <summary>
        /// 入职资料id
        /// </summary>
        public long? EntryDocumentId { get; set; }
        [SugarColumn(IsIgnore = true)]
        public EntryDocument EntryDocument { get; set; }
        /// <summary>
        /// 职位Id
        /// </summary>
        public long? PositionId { get; set; }
        [SugarColumn(IsIgnore = true)]
        public Position Position { get; set; }
        /// <summary>
        /// 是否正式员工
        /// </summary>
        public bool IsRegularEmployee { get; set; }
        /// <summary>
        /// 是否离职
        /// </summary>
        public bool IsSeparation { get; set; }
    }
}
